home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / C Internet Config / IC Application Source ƒ / Headers ƒ / IC Windows.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-02  |  3.0 KB  |  80 lines  |  [TEXT/SPM ]

  1. /*
  2.     IC Windows.h
  3.     
  4. */
  5.  
  6. #pragma once
  7.  
  8. #ifndef __H_IC_Windows__
  9. #define __H_IC_Windows__
  10.  
  11. #include "IC Window Globals.h"
  12.  
  13. // This value is different than the original IC App's value, I didn't want to use those values
  14. // For those that haven't figured it out, it should be the app's creator
  15. #define OurWindowPositionKey "\p43494341•WindowPositions"
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. void InvalidateAbout(void);
  22. OSErr CallWhatOpen(WindowType wt,short item,WindowPlainUPP open);
  23. OSErr CallWhatClose(WindowType wt,short item,WindowPlainUPP close);
  24. OSErr CallWhatFlush(WindowType wt,short item,WindowPlainUPP flush);
  25. OSErr CallWhatClick(WindowType wt,short item,EventRecord* er,WindowEventUPP click);
  26. OSErr CallWhatKey(WindowType wt,short item,EventRecord* er,WindowEventUPP key);
  27. OSErr CallWhatActivate(WindowType wt,short item,Boolean activate,WindowBooleanUPP actproc);
  28. OSErr CallWhatIdle(WindowType wt,short item,WindowPlainUPP idleproc);
  29. OSErr CallWhatCursor(WindowType wt,short item,Point pt,short curs,WindowCursorUPP cursproc);
  30. short TypeToWhat(OSType typ);
  31. OSType GetWhatType(WindowType wt,short item);
  32. WindowPtr GetWindowPtr(WindowType wt);
  33. Boolean OurWindow(WindowPtr wp);
  34. OSErr WhatIdleText(WindowType wt,short item,short* cursor);
  35. void DoWindowIdle(WindowPtr window);
  36. void WindowDoKey(WindowPtr window,EventRecord* er);
  37. void WindowActivateDeactivate(WindowPtr window,Boolean activate);
  38. ICError LaunchSomeSillyURL(StringPtr url);
  39. void DoAboutClick(WindowPtr window,short item);
  40. void WindowItemWhere(WindowPtr window,EventRecord* er,short item);
  41. Boolean WindowEarlyHandleEvent(WindowPtr window,EventRecord* er);
  42. void WindowTab(WindowPtr window,Boolean shift);
  43. Boolean WindowEarlyHandleKey(WindowPtr window,EventRecord* er);
  44. OSErr FlushWindowType(WindowPtr wp,WindowType wt);
  45. OSErr DisposeWindowType(WindowPtr wp,WindowType wt);
  46. OSErr CloseWindowType(WindowPtr wp,WindowType wt);
  47. Boolean WindowsEarlyHandleEvent(EventRecord* er);
  48. Boolean WindowsEarlyHandleKey(EventRecord* er);
  49. void WindowsDoKey(EventRecord* er);
  50. void WindowsIdle(void);
  51. void WindowsSetTitle(WindowType wt,const StringPtr title);
  52. void WindowsAdjustMenus(void);
  53. void WindowsDoEditMenu(short item);
  54. OSErr ParseWhat(WindowType wt);
  55. short GetWindowID(WindowType wt);
  56. Boolean IsPrefix(StringPtr s,const StringPtr key);
  57. OSErr EditCurrentPreference(StringPtr key);
  58. OSErr PrepWindow(WindowType wt,short id,WindowPtr wp);
  59. OSErr NewICWindow(WindowType wt);
  60. OSErr WindowsOpen(WindowType wt);
  61. OSErr WindowsClose(WindowPtr wp);
  62. void WindowsResetPositions(void);
  63. void WindowsRestorePositions(void);
  64. void WindowsSavePositions(void);
  65. OSErr WindowsFlushAll(void);
  66. OSErr WindowsCloseAll(void);
  67. void W(short what,OSType xtyp,WindowPlainUPP xopen,WindowEventUPP xkey,WindowEventUPP xclick,
  68.         WindowPlainUPP xidle,WindowPlainUPP xflush,WindowPlainUPP xclose,WindowBooleanUPP xactivate,
  69.         WindowCursorUPP xcursor,short xcursorid);
  70. void InitWhats(void);
  71. pascal void AboutBoxUpdate(DialogPtr dlg,short item);
  72. OSErr InitICWindows(void);
  73.  
  74. #ifdef __cplusplus
  75. }
  76. #endif
  77.  
  78. #endif /* __H_IC_Windows__ */
  79.  
  80.